package com.alibaba.algo.cooperation.feign.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @ClassName: SelectRoleResourceReqVO
 * @Description:
 * @Author: wugongzi
 * @Date: 2022/1/4 17:44
 * @Version: 1.0
 */
@Data
@ApiModel("根据角色查询资源VO")
public class SelectRoleResourceReqVO {

    @ApiModelProperty("角色id列表")
    @NotEmpty(message = "角色id列表为空")
    private List<Long> roleIdList;

    @ApiModelProperty("资源路径")
//    @NotBlank(message = "资源路径为空")
    private String resourcePath;

    @ApiModelProperty("租户code")
    @NotBlank(message = "租户code为空")
    private String appCode;

    private String resourceCode;

    private int menuFlag;

    private Long parentId;
}
